.class public Lorg/microemu/android/device/ui/AndroidCommandUI;
.super Ljava/lang/Object;
.source "AndroidCommandUI.java"

# interfaces
.implements Lorg/microemu/device/ui/CommandUI;


# instance fields
.field private activity:Lorg/microemu/android/MicroEmulatorActivity;

.field private command:Ljavax/microedition/lcdui/Command;

.field private drawable:Landroid/graphics/drawable/Drawable;


# direct methods
.method public constructor <init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/Command;)V
    .locals 0
    .parameter "activity"
    .parameter "command"

    .prologue
    .line 21
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 22
    iput-object p1, p0, Lorg/microemu/android/device/ui/AndroidCommandUI;->activity:Lorg/microemu/android/MicroEmulatorActivity;

    .line 23
    iput-object p2, p0, Lorg/microemu/android/device/ui/AndroidCommandUI;->command:Ljavax/microedition/lcdui/Command;

    .line 24
    return-void
.end method


# virtual methods
.method public getCommand()Ljavax/microedition/lcdui/Command;
    .locals 1

    .prologue
    .line 27
    iget-object v0, p0, Lorg/microemu/android/device/ui/AndroidCommandUI;->command:Ljavax/microedition/lcdui/Command;

    return-object v0
.end method

.method public getDrawable()Landroid/graphics/drawable/Drawable;
    .locals 1

    .prologue
    .line 35
    iget-object v0, p0, Lorg/microemu/android/device/ui/AndroidCommandUI;->drawable:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method public setImage(Ljavax/microedition/lcdui/Image;)V
    .locals 2
    .parameter "image"

    .prologue
    .line 31
    new-instance v0, Landroid/graphics/drawable/BitmapDrawable;

    check-cast p1, Lorg/microemu/android/device/AndroidImmutableImage;

    .end local p1
    invoke-virtual {p1}, Lorg/microemu/android/device/AndroidImmutableImage;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    iput-object v0, p0, Lorg/microemu/android/device/ui/AndroidCommandUI;->drawable:Landroid/graphics/drawable/Drawable;

    .line 32
    return-void
.end method
